import { defHttp } from '@/utils/http/axios';

const baseUrl = '/returnReason';

enum Api {
  searchReturnReasons = `${baseUrl}/searchReturnReasons`,
  createReturnReasons = `${baseUrl}/createReturnReasons`,
  deleteReturnReasons = `${baseUrl}/deleteReturnReasons`,
  updateReturnReasons = `${baseUrl}/updateReturnReasons`,
}
// 查询所有
export const searchReturnReasons = (params?: Recordable) =>
  defHttp.post({ url: Api.searchReturnReasons, params });
// 创建
export const createReturnReasons = (params?: Recordable) =>
  defHttp.post({ url: Api.createReturnReasons, params });
// 删除
export const deleteReturnReasons = (params?: Recordable) =>
  defHttp.post({ url: Api.deleteReturnReasons, params });
// 修改
export const updateReturnReasons = (params?: Recordable) =>
  defHttp.post({ url: Api.updateReturnReasons, params });
